﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
//using System.Web.DynamicData;
using OA.Model;
using OA.Model.MyAttribute;
using OA.Core;
using System;


namespace OA.Model
{
    [Table("Diary")]
    //[TableName("工作日志")]
    public class Diary : BaseInfo
    {
        public int Status { get; set; }

        /// <summary>
        /// 填报日期 2018-12-18
        /// </summary>
        [Display(Name = "填报日期")]
        [MaxLength(10)]
        [Tag(TagEnum.Date, "required", "填报日期", 3, 20)]
       // [Index("DateTime")]
        public string DateTime { get; set; }

        [MaxLength(10)]        
        public string EmpID { get; set; }

        [MaxLength(20)]
        public string EmpName { get; set; }


        [Display(Name = "填报内容")]
        [MaxLength(500)]
        [Tag(TagEnum.TextArea, "required", "填报内容", 3, 20)]
        public string Details { get; set; }
    }
}
